package org.gnyxy.service;

import org.gnyxy.dto.AddressDicPageQueryDTO;
import org.gnyxy.entity.AddressDic;
import org.gnyxy.result.PageResult;

import java.util.List;

public interface AddressDicService {
    void add(AddressDic addressDic);

    void deleteById(Long id);

    AddressDic getById(Long id);

    void update(AddressDic addressDic);

    PageResult page(AddressDicPageQueryDTO addressDicPageQueryDTO);
    /**
     * 获取所有的区县
     * @return
     */
    List<String> getDistrict();

    List<String> getStreet(String districtName);

    List<String> getVillage(String districtName, String streetName);
}
